
#include "TraceRequest.h"

TraceRequest::TraceRequest() {
	method = "TRACK";
	uri = "";
	version = "HTTP/1.1";
}

TraceRequest::TraceRequest(stringstream& s) : Request(s) 
{ //runs Request(s) logic, then TrackRequest(s) logic
        method = "TRACK";
}

TraceRequest TraceRequest::operator =(TraceRequest& rhs) {
	method = rhs.method;
	uri  = rhs.uri;
	version = rhs.version;
	headers = rhs.headers; // May need to iterate through headers and add in items.
	return *this;
}
Response TraceRequest::processRequest()
{
    Response resp;
    resp.statusCode = "501";
    resp.reasonPhrase = "Not Implemented";
    resp.MakeHeader();
    return resp;
}
void TraceRequest::PrintInfo()
{
    Request::PrintInfo();
}
